package com.dq.mapper;

import com.dq.pojo.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


//@Mapper : 表示本类是一个 MyBatis 的 Mapper
@Mapper
@Repository
public interface GoodsMapper {
    public List<Goods> getGoods();

    public List<Goods> getRecentGoods();

    public Goods getGoodById(String id);

    public int insertGood(Goods goods);

    public int updateGoodById(String id);

    public List<Goods> getGoodsByDelegateId(String id);

    public int getCount();

    public List<Goods> getPartGoods(Map map);

    public List<Goods> getKeyGoods(String keyword);

}
